<script setup>

import {ref} from "vue";
import router from "@/router";

const user = ref({mobile: "", password: "", cord: "", againPassword: ""});
</script>

<template>
  <div style="font-size: 50px;height: 150px;line-height: 160px">
    忘记密码
  </div>
  <el-row class="row">
    <el-col :span="5">
      <div class="rowDiv">手机号</div>
    </el-col>
    <el-col :span="19">
      <el-input placeholder="请输入手机号" v-model="user.mobile" class="loginInput"/>
    </el-col>
  </el-row>
  <el-row class="row">
    <el-col :span="5">
      <div class="rowDiv">验证码</div>
    </el-col>
    <el-col :span="9">
      <el-input placeholder="请输入验证码" v-model="user.cord" class="cordInput"/>
    </el-col>
    <el-col :span="10">
      <el-button class="login" id="cord">发送验证码</el-button>
    </el-col>
  </el-row>
  <el-row class="row">
    <el-col :span="5">
      <div class="rowDiv">新密码</div>
    </el-col>
    <el-col :span="19">
      <el-input type="password" placeholder="请输入新密码" v-model="user.password" class="loginInput"/>
    </el-col>
  </el-row>
  <el-row class="row">
    <el-col :span="5">
      <div class="colDiv">确认新密码</div>
    </el-col>
    <el-col :span="19">
      <el-input type="password" placeholder="请再次输入密码" v-model="user.againPassword" class="loginInput"/>
    </el-col>
  </el-row>
    <el-row :gutter="0">
      <el-col :span="12">
        <el-button class="login">提交</el-button>
      </el-col>
      <el-col :span="12">
        <el-button class="login" id="cancel" @click="router.push('/patient/login')">取消</el-button>
      </el-col>
    </el-row>
</template>

<style scoped>
#cord{
  border-radius: 5px;
  margin-left: 30px;
}
#cancel{
  color: rgb(64, 158, 255);
  border-color:rgb(64, 158, 255);
  background-color: #fff;
}
.login {
  width: 163px;
  height: 60px;
  margin: 0 auto;
  font-size: 24px;
  font-family: 微软雅黑, sans-serif;
  color: #fff;
  border-radius: 10px;
  line-height: 60px;
  background-color: rgb(21, 168, 255);
}
.cordInput {
  width: 235px;
  height: 60px;
  margin: 0 auto 0 22px;
  font-size: 24px;
  font-family: 微软雅黑, sans-serif;
  color: #fff;
  border-radius: 10px;
  line-height: 60px;
  background-color: rgb(21, 168, 255);
}
.row{
  margin: 20px 0
}
.colDiv{
  font-size: 25px;
  padding: 10px 0 0 0;
  width: 140px;
  line-height: 35px;
}
.rowDiv{
  font-size: 25px;
  padding: 10px 0 0 30px;
  width: 100px;
  line-height: 35px;
}
.loginInput{
  width:400px;
  height:60px;
  font-size: 25px;
}
</style>